package com.gosling.cloudspace.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gosling.cloudspace.common.entity.dtos.LoginDto;
import com.gosling.cloudspace.common.entity.pojo.UserInfoPO;
import com.gosling.cloudspace.common.entity.vo.LoginResultVO;
import com.gosling.cloudspace.common.entity.vo.UserInfoReqVO;
import com.gosling.cloudspace.common.entity.vo.UserInfoVO;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @email 1793327033@qq.com
 * @classname UserInfoService
 * @author: osc_lihonglin
 * @date: 2021/7/23 9:16
 */
@Service
public interface UserInfoService extends IService<UserInfoPO> {
    LoginResultVO login(HttpServletRequest request, LoginDto dto);
    void registry(HttpServletRequest request, LoginDto dto);
    UserInfoVO localUserInfo();
    UserInfoVO getUserInfo(UserInfoReqVO vo);
    List<UserInfoVO> getUserInfoAll();
    void logout();
    void offline();
}
